//
//  Config.h
//  QinZi
//
//  Created by JoyWang on 14-6-11.
//  Copyright (c) 2014年 tiewang. All rights reserved.
//

#ifndef QinZi_Config_h
#define QinZi_Config_h


#define SCREENHEIGHT [[UIScreen mainScreen] bounds].size.height
#define TopBarHeight ([[[UIDevice currentDevice] systemVersion] floatValue]<7.0?44.0f:64.0f)
#define StateBarHeight ([[[UIDevice currentDevice] systemVersion] floatValue]<7.0?20.0f:0.0f)

#define SYSTEM_VERSION_EQUAL_TO(v)                  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v)              ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)     ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)

#define THEMECOLOR [UIColor colorWithRed:(CGFloat)(CGFloat)30/255 green:(CGFloat)176/255 blue:(CGFloat)38/255 alpha:1.0]
#define AddressNotification @"AddressNotification"
#define BG_COLOR [UIColor colorWithRed:(CGFloat)241/255 green:(CGFloat)241/255 blue:(CGFloat)241/255 alpha:1.0]
#define CELLBG_COLOR [UIColor colorWithRed:(CGFloat)219/255 green:(CGFloat)219/255 blue:(CGFloat)219/255 alpha:1.0]
#define KeyboardHeight 216.0f
#define UMAPPKey @"5395ca9456240b469e07d966" //友盟key
#define UMWechatKey @"wxe1abb7709f368821" //微信key
#define TEXT_COLOR [UIColor colorWithRed:(CGFloat)244/255 green:(CGFloat)44/255 blue:(CGFloat)86/255 alpha:1.0] 
#define CELLBGVIEW_TAG 999
#define CELLBG_COLOR [UIColor colorWithRed:(CGFloat)219/255 green:(CGFloat)219/255 blue:(CGFloat)219/255 alpha:1.0]
/**
 *  高德地图key
 */
const static NSString *MAMapAPIKey = @"cebc0e5617d3055c4586b56eb3ffa6f1";
#endif
